# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=emacs-centaur-tabs
pkgver=3.2_git20230601
_gitrev=0bb1aa18d475319df85f192dce3327802866c3c3
pkgrel=0
_pkgreal=centaur-tabs
pkgdesc="Aesthetic, modern looking tabs plugin"
url="https://github.com/ema2159/centaur-tabs"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	cmd:emacs
	emacs-powerline
	"
makedepends="emacs-nox"
source="https://github.com/ema2159/centaur-tabs/archive/$_gitrev/emacs-centaur-tabs-$_gitrev.tar.gz"
builddir="$srcdir/$_pkgreal-$_gitrev"
options="!check" # no tests provided

build() {
	emacs -batch -q -no-site-file -L . \
		-f batch-byte-compile \
		./*.el
}

package() {
	install -Dvm644 ./*.el ./*.elc \
		-t "$pkgdir"/usr/share/emacs/site-lisp/$_pkgreal/

	cd "$pkgdir"/usr/share/emacs/site-lisp/$_pkgreal
	emacs -batch -q -no-site-file \
		-eval "(loaddefs-generate \".\" \"$_pkgreal-loaddefs.el\")"
}

sha512sums="
f59668c6ea3af1624a94db4b5afa584f75544689cfc039be1869ed9c633303f13809c208a47dd3c9dfe4f6b27c83381372e46ea624af11e4eed9cedaae8218fd  emacs-centaur-tabs-0bb1aa18d475319df85f192dce3327802866c3c3.tar.gz
"
